package com.hyt.it.ogt.kq.service.gov.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.kq.service.gov.model.entity.ExamAgreement;
import com.hyt.it.ogt.kq.service.gov.model.vo.ExamAgreementVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考试协议表 Mapper 接口
 * </p>
 *
 * @author huangyh
 * @since 2021-03-08
 */
public interface ExamAgreementMapper extends BaseMapper<ExamAgreement> {

    void saveExamNoticeAndWelcomeWords(@Param("examAgreementVO") ExamAgreementVO examAgreementVO);

    /**
     * 查询考生须知和欢迎语列表
     * @param taskId
     * @return list
     */
    List<ExamAgreementVO> getExamNoticeAndWelcomeWordsList(String taskId);

    /**
     * 初始化考生须知
     * @param taskId
     * @param officeId
     */
    void initTaskExamAgreement(String taskId,String officeId);

    /**
     * 复制考生须知
     * @param newTaskId
     * @param oldTaskId
     * @param userName
     */
    void copyTaskExamAgreement(String newTaskId,String oldTaskId,String userName);

}
